package br.com.esporte.negocios.entidades;

import java.util.Collection;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Table(name = "jogo")
public class Jogo extends Entidade {

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dia_hora")
	private Date diaHora;

	@ManyToOne
	@JoinColumn(name = "dia_jogo_id")
	private DiaJogo diaJogo;

	@Transient
	private Collection<Time> times;

	public Jogo() {

	}

	public Date getDiaHora() {
		return diaHora;
	}

	public DiaJogo getDiaJogo() {
		return diaJogo;
	}

	public Collection<Time> getTimes() {
		return times;
	}

	public void setDiaHora(Date diaHora) {
		this.diaHora = diaHora;
	}

	public void setDiaJogo(DiaJogo diaJogo) {
		this.diaJogo = diaJogo;
	}

	public void setTimes(Collection<Time> times) {
		this.times = times;
	}

}
